Skip to content

fix: reject prematurely closed HTTP responses - #62

Open
RachitSrivastava12 wants to merge 1 commit into
serpapi:masterfrom
RachitSrivastava12:fix/premature-response-close
Open

RachitSrivastava12 wants to merge 1 commit into
serpapi:masterfrom
RachitSrivastava12:fix/premature-response-close

Conversation

@RachitSrivastava12

Copy link
Copy Markdown

Summary

  • Handle response stream errors and premature closes in execute() and uploadImage().
  • Reject immediately when a response closes before completion instead of waiting for the request timeout.
  • Add regression tests for both paths.

Testing

  • deno task test
  • deno fmt --check
  • deno lint
  • deno task npm

Also verified that both regression tests fail against the original implementation and pass with the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant